How to fix ValueError: ValueError: could not convert string to float